﻿using System;

namespace _65_为Nullable_T实例分配默认值_可以为null的值类型
{
    class Program
    {
        static void Main(string[] args)
        {

            int? c = null;
            int r = c ?? 25;
            Console.WriteLine(r);

            //当值为null时则返回默认值 ，用两个问号实现??预分配值
            int? d = null;
            int s = d ?? 8;
            Console.WriteLine(s);


            Console.WriteLine("Hello World!");
        }
    }
}
